#!/bin/sh

echo "[INFO] [$(date '+%Y-%m-%d %H:%M:%S')] application alarm-task."

if [ -n "$WAIT_HOSTS" ]; then
    echo "[INFO] 检测依赖环境."
    chmod +x /wait
    /wait
fi

exec "$@"